<?php

namespace Mssae\SeoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert ;

/**
 * Mssae\SeoBundle\Entity\TypeAnnuaire
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Mssae\SeoBundle\Entity\TypeAnnuaireRepository")
 */
class TypeAnnuaire
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $libelle
     *
     * @ORM\Column(name="libelle", type="string", length=255)
     * @Assert\NotBlank()
     * @Assert\MinLength(limit = 3)
     */
    private $libelle;

    /**
     * @var smallint $satut
     *
     * @ORM\Column(name="satut", type="smallint")
     * @Assert\Min(0)
     * @Assert\Max(1)
     */
    private $satut;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set libelle
     *
     * @param string $libelle
     */
    public function setLibelle($libelle)
    {
        $this->libelle = $libelle;
    }

    /**
     * Get libelle
     *
     * @return string 
     */
    public function getLibelle()
    {
        return $this->libelle;
    }

    /**
     * Set satut
     *
     * @param smallint $satut
     */
    public function setSatut($satut)
    {
        $this->satut = $satut;
    }

    /**
     * Get satut
     *
     * @return smallint 
     */
    public function getSatut()
    {
        return $this->satut;
    }
    public function __toString()
    {
        return $this->libelle ;
    }
}